package demo1.jt;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class User {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        Dog bean = a.getBean(Dog.class);
        bean.hello();

    }
}
